﻿using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using DevExpress.XtraReports.UI;

namespace QUAN_LY_MUON_TRA_SACH
{
    public partial class rpt_ds_doc_gia_bi_phat : DevExpress.XtraReports.UI.XtraReport
    {
        public rpt_ds_doc_gia_bi_phat()
        {
            InitializeComponent();
        }
        public void BindData()
        {
            rtxtungay.Text = FORM_MAIN.frmmain.cadtungay.Text;
            rtxdenngay.Text = FORM_MAIN.frmmain.caddenngay.Text;
            xlbngay.Text = DateTime.Today.Day.ToString();
            xlbthang.Text = DateTime.Today.Month.ToString();
            xlbnam.Text = DateTime.Now.Year.ToString();
            xlbnguoilap.Text = FORM_MAIN.frmmain.siInfo.Caption;
            colhoten.DataBindings.Add("Text", DataSource, "HTEN_DG");
            colmathe.DataBindings.Add("Text", DataSource, "MATHE");
            colngayphat.DataBindings.Add("Text", DataSource, "NGAYLAP");
            collydo.DataBindings.Add("Text", DataSource, "LY_DO");
            colsotien.DataBindings.Add("Text", DataSource, "SOTIEN_PHAT");
        }
    }
}
